using System.ComponentModel.DataAnnotations;

namespace MudWebApp.Requests;

public class LoginData
{
    [Required(ErrorMessage = "请输入电子邮件")]
    [EmailAddress(ErrorMessage = "请输入有效的电子邮件地址")]
    [DataType(DataType.EmailAddress)]
    public string Email { get; set; } = string.Empty;

    [Required(ErrorMessage = "请输入密码")]
    [DataType(DataType.Password)]
    public string Password { get; set; } = string.Empty;
}